package zhuyingying20240318;

/**
 * @Package:PACKAGE_NAME
 * @Author:zhuyingying
 * @Created:2024/3/1820:05
 */
public class Car {
    public  String name;
    public Car() {
    }
    public Car(String name){
        this.name =name;
    }
    public void drive(){
        System.out.println(name+"正在行驶");
    }
    public void trumpet(){
        System.out.println(name+"汽车按喇叭");
    }
}
